#include<stdio.h> 
long int fanc(int a)
{
	int sum,b;
	for(b=1,sum=1;b<=a;b++)
	sum*=b;
	return sum;
}
                  
main()
{    

    int n;
    scanf("%d", &n);
    printf("%ld", fanc(n));
}

